home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- REM ----------------------------------------------------------------------
- REM This will display the filelist to screen. It should show GENRSP.EXE,
- REM GENRSP.C, COMMAND.COM, AUTOEXEC.BAT, CONFIG.SYS, among others, but
- REM notice they will all have an .OBJ extension.
- REM ----------------------------------------------------------------------
-
- echo First test, find all .EXE and .C files in current directory, all
- echo .COM, .BAT, and .SYS files in root directory, extensions will be
- echo changed to .OBJ
- GENRSP "-+%%s & \n" *.exe;*.c;c:\*.com;c:\*.bat;c:\*.sys
- echo Second test... search for file DUMMY.FIL, beep if not found, and
- echo demonstrate usage of some escape sequences in format strings (BELL, HEX,
- echo NEWLINE, TAB)
- GENRSP "-+%%s & \n" DUMMY.FIL
- if errorlevel == 1 GENRSP "\n\t\x11BEEP! File not found! \x10\a" example.bat
-
- REM ----------------------------------------------------------------------
- REM Output to file "OBJLIST.RSP":
- REM
- REM GENRSP "-+%%s & \n" *.exe;*.c;c:\*.com;c:\*.bat;c:\*.sys >>OBJLIST.RSP
- REM also valid: (all .cpp files in parent of parent of current directory
- REM of C: drive)
- REM GENRSP "-+%%s & \n" c:..\..\*.cpp >>OBJLIST.RSP
- REM ----------------------------------------------------------------------
- REM Usage with TLIB.EXE:
- REM
- REM TLIB mylib.lib @OBJLIST.RSP
-